use std::collections::HashMap;

pub fn new_count_distinct(input_str: &str) -> usize {
    let mut map: std::collections::HashMap<&str, bool> = HashMap::new();
    let mut res = 0;
    let inputs = input_str.split(',');
    for str in inputs {
        if !map.contains_key(str) {
            res += 1;
            map.insert(str, true);
        }
    }

    res
}
